package webwinkelapp;

/**
 * This class represents a CD
 * @author Rutger Broerze en Stefan Blok
 */
public class CD extends Product {
    private String name;
    private String description;
    private String artist;
    private int trackcount;
    private double price;
    
    public CD()
    {
        this("", "", "", 0, 0.0);
    }
    
    public CD(String name, String description, String artist, int trackcount, double price)
    {
        this.name = name;
        this.description = description;
        this.artist = artist;
        this.trackcount = trackcount;
        this.price = price;
    }
    
    /**
     * Returns a printable string of the details of a specific CD
     * @return A String with printable CD details
     */
    @Override
    public String toString()
    {
        String str = "Naam: " + name +
                "\nOmschrijving: " + description +
                "\nArtiest: " + artist +
                "\nAantal nummers: " + trackcount +
                "\nPrijs: " + price + "\n";
        return str;
    }

    /**
     * Gets the name
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * Sets the name
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * Gets the description
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * Sets the description
     * @param description the description to set
     */
    public void setDescription(String description) {
        this.description = description;
    }

    /**
     * Gets the artist
     * @return the artist
     */
    public String getArtist() {
        return artist;
    }

    /**
     * Sets the artist
     * @param artist the artist to set
     */
    public void setArtist(String artist) {
        this.artist = artist;
    }

    /**
     * Gets the trackcount
     * @return the trackcount
     */
    public int getTrackcount() {
        return trackcount;
    }

    /**
     * Sets the trackcount
     * @param trackcount the trackcount to set
     */
    public void setTrackcount(int trackcount) {
        this.trackcount = trackcount;
    }

    /**
     * Gets the price
     * @return the price
     */
    public double getPrice() {
        return price;
    }

    /**
     * Sets the price
     * @param price the price to set
     */
    public void setPrice(double price) {
        this.price = price;
    }
}
